package com.example.event;

import lombok.AllArgsConstructor;
import lombok.Data;
import org.springframework.context.ApplicationEvent;


/**
 * 定义一个事件
 */
@Data
@AllArgsConstructor
public class DemoEvent<T> {

    private Integer type;

    private T data;

}
